package cn.itcast.bos.service.user;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.itcast.bos.domain.user.User;

public interface UserService {
	public void save(User user);

	public void deleteUser(User user);

	public void updateUserPasswordByUsername(String username, String newPassword);

	public User findUserById(String id);

	public List<User> findAllUsers();

	public User findUserByUsernameAndPassword(String username, String password);

	public User findUserByUsername(String username);

	public void save(User model, String[] roleIds);

	public Page<User> findAll(Pageable pageRequest);
}
